import request from '@/utils/request'

// 查询设备维护任务跟踪（记录维护工单全生命周期）列表
export function listTasks(query) {
  return request({
    url: '/equipment-service/equipment/tasks/list',
    method: 'get',
    params: query
  })
}

// 查询设备维护任务跟踪（记录维护工单全生命周期）详细
export function getTasks(taskId) {
  return request({
    url: '/equipment-service/equipment/tasks/' + taskId,
    method: 'get'
  })
}

// 新增设备维护任务跟踪（记录维护工单全生命周期）
export function addTasks(data) {
  return request({
    url: '/equipment-service/equipment/tasks',
    method: 'post',
    data: data
  })
}

// 修改设备维护任务跟踪（记录维护工单全生命周期）
export function updateTasks(data) {
  return request({
    url: '/equipment-service/equipment/tasks',
    method: 'put',
    data: data
  })
}

// 删除设备维护任务跟踪（记录维护工单全生命周期）
export function delTasks(taskId) {
  return request({
    url: '/equipment-service/equipment/tasks/' + taskId,
    method: 'delete'
  })
}

